package org.springblade.modules.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author SYG
 * @since 2022-08-26
 */
@TableName("dept_type_info")
@Data
public class DeptTypeInfo extends Model<DeptTypeInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位类型
     */
    @ApiModelProperty(value = "单位类型")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer unitTypeCode;

    /**
     * 单位类型名称
     */
    @ApiModelProperty(value = "单位类型名称")
    private String unitTypeName;

    /**
     * 位置
     */
    @ApiModelProperty(value = "位置")
    private String position;


    @ApiModelProperty(value = "部门编号")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer deptId;
}
